import requests
from requests.auth import HTTPBasicAuth
import base64

def create_file_in_git_repository(repo_url, file_path, markdown_content, commit_message, git_token, branch="master"):
    # 准备提交的数据
    data = {
        'message': commit_message,
        'content': base64.b64encode(markdown_content.encode('utf-8')).decode('utf-8'),
        'branch': branch,
        'committer': {
            'name': '10225501403',
            'email': '10225501403@stu.ecnu.edu.cn'
        }